package com.back.entity;

import lombok.*;

import java.sql.Timestamp;

@AllArgsConstructor
@NoArgsConstructor
@Setter
@Getter
@ToString
public class Movie {
    int id;
    String name;
    String type;
    String description;
    String nation;
    Timestamp date;
    String img; // 图片存储路径

    int page_view;
    int total_score;
    int num_score;

    public Movie(String name, String type, String description, String nation, Timestamp date, String img, int page_view, int total_score, int num_score) {
        this.name = name;
        this.type = type;
        this.description = description;
        this.nation = nation;
        this.date = date;
        this.img = img;
        this.page_view = page_view;
        this.total_score = total_score;
        this.num_score = num_score;
    }
}
